<%@ Page validateRequest="false" Language="vb" AutoEventWireup="false" Codebehind="OrderList.aspx.vb" Inherits="MIMS_WRS.Web.OrderList"%>
<%@ Register TagPrefix="uc1" TagName="HelpCtrl" Src="../Controls/HelpCtrl.ascx" %>
<%@ Register TagPrefix="cc1" Namespace="SR.WebControls" Assembly="SR.WebControls.PageSelect" %>
<%@ Register TagPrefix="uc1" TagName="Header" Src="../Controls/Header.ascx" %>
<%@ Register TagPrefix="uc1" TagName="Footer" Src="../Controls/Footer.ascx" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
	<HEAD>
		<title>Order List</title>
		<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
		<meta content="Visual Basic .NET 7.1" name="CODE_LANGUAGE">
		<meta content="JavaScript" name="vs_defaultClientScript">
		<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
		<LINK href="../style.css" type="text/css" rel="stylesheet">
		<script language="javascript" src="../Js/common.js"></script>
		<script language="JavaScript" src="../js/function.js" type="text/JavaScript"></script>
	</HEAD>
	<body leftMargin="0" topMargin="0" onload="MM_preloadImages('../images/b_weeklyreporto.gif','../images/b_historyreporto.gif','../images/b_usero.gif')"
		marginwidth="0" marginheight="0">
		<form id="Form1" method="post" runat="server">
			<table cellSpacing="0" cellPadding="0" width="100%" border="0">
				<uc1:header id="Header1" runat="server"></uc1:header>
				<!-- Submenu: start -->
				<tr>
					<td class="bgsubmenu" align="center" height="25">
						<div class="nlink">
							<table cellSpacing="0" cellPadding="0" width="96%" border="0">
								<tr>
									<td class="txtcolor2" align="right" width="98%">
										<p><A href="OrderInput.aspx"><strong>Create New Order</strong></A></p>
									</td>
									<td class="txtcolor2" noWrap align="right" width="70"><span class="plink"><A href="javascript:history.back()"><IMG height="16" hspace="2" src="../images/b_back.gif" width="57" vspace="0" border="0"></A></span></td>
								</tr>
							</table>
						</div>
					</td>
				</tr>
				<tr>
					<td class="bglinetop1" height="1"><IMG height="1" src="../images/1pxl.gif" width="1"></td>
				</tr>
				<!-- Submenu: end -->
				<!-- DataTable : start -->
				<tr>
					<td class="bgwhite" align="center">
						<table cellSpacing="0" cellPadding="0" width="96%" border="0">
							<tr>
								<td>
									<table cellSpacing="0" cellPadding="0" width="100%" border="0">
										<tr>
											<td vAlign="bottom" width="56%" height="25"><span class="title"><strong>ORDER LIST</strong></span></td>
											<td vAlign="bottom" align="right" width="44%"><div class="plink"><span class="txtcolor2"><strong><span class="txtsmall"><A href="#">
																	<uc1:HelpCtrl id="HelpCtrl1" runat="server"></uc1:HelpCtrl>
																</A></span></strong></span>
												</div>
											</td>
										</tr>
									</table>
								</td>
							</tr>
							<tr>
								<td height="5"><IMG height="1" src="../images/1pxl.gif" width="1"></td>
							</tr>
							<tr>
								<td class="line" height="1"><IMG height="2" src="../images/1pxl.gif" width="1"></td>
							</tr>
							<tr>
								<td class="bgtitle" align="right">
									<table cellSpacing="0" cellPadding="0" width="100%" border="0">
										<tr>
											<td width="72%" height="25">
												<table cellSpacing="0" cellPadding="2" border="0">
													<tr>
														<td><span class="txtnormal"><strong>Status:</strong></span><strong> </strong>
														</td>
														<td><asp:dropdownlist id="ddlStatus" CssClass="txtnormal" Runat="server"></asp:dropdownlist></td>
														<td class="txtnormal" align="right" width="5">&nbsp;</td>
														<td><span class="txtnormal"><strong>Customer:</strong></span><strong> </strong>
														</td>
														<td><asp:dropdownlist id="ddlCustomer" CssClass="txtnormal" Runat="server"></asp:dropdownlist></td>
														<td><asp:textbox id="txtOrderNo" CssClass="txtnormal" Runat="server" Width="80px" MaxLength="10"
																Visible="False"></asp:textbox><asp:button id="btnSearch" CssClass="buttons" Runat="server" Width="40px" Text="Go"></asp:button></td>
													</tr>
												</table>
											</td>
											<td align="right" width="28%"><strong></strong></td>
										</tr>
									</table>
								</td>
							</tr>
							<tr>
								<td class="txtcolor1s">
									<table cellSpacing="0" cellPadding="0" width="100%" border="0">
										<tr>
											<td class="border" height="1"><IMG height="1" src="../images/1pxl.gif" width="1"></td>
										</tr>
										<tr>
											<td class="txtcolor1s" bgColor="#ffffff" height="1"><IMG height="1" src="../images/1pxl.gif" width="1"></td>
										</tr>
										<tr>
											<td class="rowpage" align="right" height="25">
												<table class="txtcolor1" cellSpacing="0" cellPadding="2" border="0">
													<tr>
														<td class="txtcolor1s" align="right"><b><cc1:pageselect id="PageSelect1" runat="server" cssclass="plink" PageCssClass="txtcolor1s" PageSelectedCssClass="txtsmall"></cc1:pageselect></b></td>
													</tr>
												</table>
											</td>
										</tr>
									</table>
								</td>
							</tr>
							<tr>
								<td vAlign="top">
									<table class="border" cellSpacing="0" cellPadding="0" width="100%" border="0">
										<tr>
											<td vAlign="top"><asp:datagrid id="dgOrders" runat="server" Width="100%" AutoGenerateColumns="False" BorderColor="#BFD6FB"
													BorderWidth="0px" cellPadding="3" CellSpacing="1" PageSize="20">
													<AlternatingItemStyle HorizontalAlign="Center" VerticalAlign="Middle"></AlternatingItemStyle>
													<ItemStyle HorizontalAlign="Center" CssClass="bgrow1" VerticalAlign="Middle"></ItemStyle>
													<HeaderStyle Font-Bold="True" HorizontalAlign="Center" CssClass="txtheader" VerticalAlign="Middle"></HeaderStyle>
													<Columns>
														<asp:TemplateColumn HeaderText="PO#/BO#">
															<ItemTemplate>
																<asp:HyperLink runat="server" Text='<%# BuildViewOrderLink(Container) %>' ID="Hyperlink1">
																</asp:HyperLink>
															</ItemTemplate>
														</asp:TemplateColumn>
														<asp:TemplateColumn HeaderText="Order Date">
															<ItemTemplate>
																<asp:Label runat="server" Text='<%# MIMS_WRS.Business.Common.FormatDate(DataBinder.Eval(Container, "DataItem.ORDER_DATE")) %>' ID="Label1">
																</asp:Label>
															</ItemTemplate>
														</asp:TemplateColumn>
														<asp:TemplateColumn HeaderText="Adjust Quantity">
															<ItemTemplate>
																<asp:Literal id="Literal1" Runat=server Text='<%# BuildAdjustQuantityLink(Container) %>'>
																</asp:Literal>
															</ItemTemplate>
														</asp:TemplateColumn>
														<asp:TemplateColumn HeaderText="Production Status">
															<ItemTemplate>
																<asp:Literal id="Literal2" Runat=server Text='<%# BuildProductionStatusUpdateLink(Container) %>'>
																</asp:Literal>
															</ItemTemplate>
														</asp:TemplateColumn>
														<asp:BoundColumn DataField="CustomerEmail" HeaderText="Email"></asp:BoundColumn>
														<asp:BoundColumn DataField="CustomerName" HeaderText="Customer Name">
															<ItemStyle HorizontalAlign="Left" VerticalAlign="Middle"></ItemStyle>
														</asp:BoundColumn>
													</Columns>
												</asp:datagrid></td>
										</tr>
									</table>
								</td>
							</tr>
							<tr>
								<td class="txtcolor1s">
									<table cellSpacing="0" cellPadding="0" width="100%" border="0">
										<tr>
											<td class="txtcolor1s" bgColor="#ffffff" height="1"><IMG height="1" src="../images/1pxl.gif" width="1"></td>
										</tr>
										<tr>
											<td class="rowpage" align="right" height="25">
												<table class="txtcolor1" cellSpacing="0" cellPadding="2" border="0">
													<tr>
														<td class="txtcolor1s" align="right"><b><cc1:pageselect id="Pageselect2" runat="server" cssclass="plink" PageCssClass="txtcolor1s" PageSelectedCssClass="txtsmall"></cc1:pageselect></b></td>
													</tr>
												</table>
											</td>
										</tr>
										<tr>
											<td class="border" height="1"><IMG height="1" src="../images/1pxl.gif" width="1"></td>
										</tr>
									</table>
								</td>
							</tr>
							<tr>
								<td height="30"><span class="txtsmall"><b>TOTAL: </b></span>
									<asp:label id="lblTotal" CssClass="txthighlight" Runat="server"></asp:label>&nbsp;<b><asp:label id="lblTotalText" CssClass="txtsmall" Runat="server">ORDER(S)</asp:label></b></td>
							</tr>
							<tr>
								<td class="txthighlightsmall"><span class="txthighlight">*</span> : still not 
									update for this week</td>
							</tr>
							<tr>
								<td>&nbsp;</td>
							</tr>
						</table>
					</td>
				</tr>
				<!-- DataTable: end --><uc1:footer id="Footer1" runat="server"></uc1:footer></table>
		</form>
	</body>
</HTML>
